package main

import "fmt"

type FuncType func(int,int) int

func Add(a,b int)  int{
	return a+b
}
func Minus(a,b int)  int{
	return a-b
}
func Calc(a,b int,fTest FuncType)  (result int) {
	fmt.Println("Calc")
	result=fTest(a,b)
	return
}

func main()  {
	a :=Calc(1,1,Add)
	fmt.Println(a)
	b :=Calc(1,1,Minus)
	fmt.Println(b )
}